package cn.wolfcode.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Getter
@Setter
public class MessageBoard {
    /** */
    private Long id;

    /** 昵称*/
    private String nickname;

    /** 留言内容*/
    private String content;

    /** 留言时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 预约业务*/
    private Long categoryId;

    /** 回复状态(未回复/已回复)*/
    private boolean replystatus =false;

    /** 业务大类*/
    private String sdPName ;
    /** 业务小类*/
    private String sdName ;

    /** 拥有的回复*/
    private List<MessageReply> messageReplies;

    public String replayDisplay(){
        if (this.replystatus){
            return "已回复";
        }else {
            return "未回复";
        }
    }


}